package org.exez.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.exez.modules.visitor.service.IReservationApplicationService;
import org.exez.modules.visitor.service.SjyService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 外侧数据同步
 *
 * @Author Scott
 */
@Slf4j
public class DataTransmissionJob implements Job {
	@Autowired
	private IReservationApplicationService reservationApplicationService;

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

		log.info("=============正在外侧数据同步======================");
		reservationApplicationService.dataTransmission();

		log.info("=============结束外侧数据同步======================");
	}
}
